package Homework;

public class ChangePrintNumber extends Thread{
	String mode;
	FizzBuzz fb;
	
	@Override
	public void run() {
		while(fb.start<=fb.num){
			fb.print(mode);
			try {
				sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}

	public ChangePrintNumber(String mode, FizzBuzz fb) {
		super();
		this.mode = mode;
		this.fb = fb;
	}	
	
}
